package a06_polymorphism.Animal;

/**
 * @Author quan
 * @Description 子类：Dog
 * @Date 2023/3/6 10:48
 */
public class Dog extends Animal{
    public Dog() {
    }

    public Dog(String name,int age){
       super(name, age);
    }

    //重写父类中的eat方法
    @Override
    public void eat() {
        System.out.println("狗狗在啃骨头~");
    }
    //Dog类中独有的bite方法
    public void bite(){
        System.out.println("狗在咬人~");
    }
}
